
package com.mycompany.controller.account;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;

public class XatonConnectionSignUp implements ConnectionSignUp{

	private FacebookSaveDataService facebookSaveDataService;


	@Override
	public String execute(final Connection<?> connection) {

		return getFacebookSaveDataService().saveOrUpdate(connection);
	}
	public void setFacebookSaveDataService(FacebookSaveDataService facebookSaveDataService) {
		this.facebookSaveDataService = facebookSaveDataService;
	}


	public FacebookSaveDataService getFacebookSaveDataService() {
		return facebookSaveDataService;
	}


}

